Problem Note 58961: The error "Violation of PRIMARY KEY constraint" occurs when you publish to the Common Data Model in SAS® Customer Intelligence
When you publish the same campaign more than once to the Common Data Model in SAS Customer Intelligence, the publishing process might fail. When this happens, the following error message is generated:
Vendor Code: 100000, Macor [MACCLIST].
SYSDBRC=[23000] and SYSDBMSG=[OLEDB:
ICommand::Execute failed.: The statement has been terminated
ICommand::Execute failed. : The statement has been terminated.:
Violation of PRIMARY KEY constraint 'CP_DT_UDF_PK'.
Cannot insert duplicate key in object 'CDM.CI_CAMP_PAGE_DATE_UDF'.
The duplicate key value is (xxxxx)].
This error suggests that the publishing process is trying to insert the same row again into the CI_CAMP_PAGE_DATE_UDF table with a new PROCESSED_DTTM column.
The expected behavior is that the process should update the existing row with a new PROCESSED_DTTM column.
The same issue might also occur for these tables:
- CI_CAMP_PAGE_DATE_UDF
- CI_CAMP_PAGE_CHAR_UDF
- CI_CAMP_PAGE_NUM_UDF
When you encounter this issue, make sure that the format that is defined in the ci_cdm_ddl_xxx.sas scripts (located in the SASHOME\SASFoundation\9.4\cicsvr\sasmisc directory) is the same as the format in your database.
For example, if your scripts use the VARCHAR format but the database uses NVARCHAR, you might need to change format in the scripts to the NVARCHAR format to match the database.
After the modification, you need to re-generate the tables.
Operating System and Release Information
SAS System | SAS Marketing Automation | Microsoft® Windows® for 64-Bit Itanium-based Systems | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows XP 64-bit Edition | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft® Windows® for x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows Server 2003 for x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows Server 2008 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows Server 2008 R2 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows Server 2008 for x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Microsoft Windows XP Professional | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows 7 Enterprise 32 bit | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows 7 Enterprise x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows 7 Home Premium 32 bit | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows 7 Home Premium x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows 7 Professional 32 bit | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows 7 Professional x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows 7 Ultimate 32 bit | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows 7 Ultimate x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows Vista | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Windows Vista for x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
64-bit Enabled AIX | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
64-bit Enabled HP-UX | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
64-bit Enabled Solaris | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
HP-UX IPF | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Linux | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Linux for x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
Solaris for x64 | 6.1_M1 | 6.1_M1 | | 9.3 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2016-09-13 12:25:55 |
Date Created: | 2016-09-12 09:47:50 |